/**
 * ExtDirect4Java
 * @author Maxim Egorov
 * @version 0.2-alpha
 *
 * Copyright(c) 2009, Swissdotnet S?rl
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 */
package ch.swissdotnet.extdirect4j;

class ExtDirectDTO {
    private String action;
    private String method;
    private Type type;
    private int tid;

    public enum Type {
        rpc,
        exception
    }

    ExtDirectDTO() {
        this.action = "";
        this.method = "";
        this.type = null;
        this.tid = 0;
    }

    ExtDirectDTO(final ExtDirectDTO dto) {
        this.action = dto.action;
        this.method = dto.method;
        this.type = dto.type;
        this.tid = dto.tid;
    }

    String getAction() {
        return action;
    }

    void setAction(final String action) {
        this.action = action;
    }

    String getMethod() {
        return method;
    }

    void setMethod(final String method) {
        this.method = method;
    }

    Type getType() {
        return type;
    }

    void setType(final Type type) {
        this.type = type;
    }

    int getTid() {
        return tid;
    }

    void setTid(final int tid) {
        this.tid = tid;
    }

}
